package jm.nj.day08jia.demo07;
/*
* 相互转换
* public String toString()  //SB--->S
* StringBuilder(String str)//构造方法
* */
public class Test03 {
    public static void main(String[] args) {

        StringBuilder sb = new StringBuilder();
        sb.append("hello");

        String s = sb.toString();
        System.out.println(s);

        String s1 = "world";

        StringBuilder sb2 = new StringBuilder(s1);
        System.out.println(sb2);//不是地址
    }
}
